import { createApp } from 'vue';
import App from './App.vue';
import { createPinia } from 'pinia';

// 导入组件
import NavgateBarVue from '@/components/navgateBar/index.vue';
import VitoVue from '@/components/vito/index.vue';
import VottersVue from '@/components/voters/index.vue';



const app = createApp(App);

// 创建 Pinia 实例
const pinia = createPinia();

// 全局注册 Pinia
app.use(pinia);

// 全局注册组件
app.component('navgate-bar-vue', NavgateBarVue);
app.component('vito-vue', VitoVue);
app.component('voters-vue', VottersVue);

// 挂载应用
app.mount('#app');
